import request from '@/utils/request'

// 查询筛查人员
export function listScreener(query) {
  return request({
    url: '/system/user/list',
    method: 'get',
    params: query
  })
}

// 查询筛查人员绑定的学校
export function listBindSchool(query) {
  return request({
    url: '/user-school/page',
    method: 'get',
    params: query
  })
}

// 用户绑定学校
export function bindSchool(data) {
  return request({
    url: '/user-school/bind',
    method: 'post',
    data: data
  })
}

// 更新有效日期
export function setValidDate(data) {
  return request({
    url: '/user-school/updateBind',
    method: 'post',
    data: data
  })
}

// 解除绑定
export function unbindSchool(data) {
  return request({
    url: '/user-school/unbind',
    method: 'post',
    data: data
  })
}